class apple:

    def __init__(self,name,color):
        self.name=name
        self.color=color

    def play(self):
        print('这是'+self.name,',是'+self.color+'的')
    
redapple=apple("红苹果","红色")
redapple.play()
